﻿using System;
using System.Windows;

namespace mediaPrime.Sdk
{
    /// <summary>
    /// Inherit from this class to create a default Plugin with UI
    /// </summary>
    public abstract class Plugin : BasePlugin
    {
        public abstract UIElement GetUserInterface();
        public abstract UIElement GetTileContent();

        public event EventHandler Show;
        public event EventHandler Hide;

        internal void OnShow()
        {
            var show = Show;
            if (show != null)
                show(this, new EventArgs());
        }

        internal void OnHide()
        {
            var hide = Hide;
            if (hide != null)
                hide(this, new EventArgs());
        }
    }
}
